#ifndef SACFORM_H
#define SACFORM_H

#include <QWidget>
#include <config/common.h>
#include <config/config.h>
#include <QFileDialog>
#include "form/fileattributeform.h"
#include "thread/sactosegythread.h"
#include "QFile"
namespace Ui {
class SacForm;
}

class SacForm : public QWidget
{
    Q_OBJECT
    
public:
    explicit SacForm(QWidget *parent = 0);
    ~SacForm();    
    void resizeEvent(QResizeEvent *);
    void paintEvent(QPaintEvent *);
private slots:
    void on_pushButton_file_clicked();
    void on_pushButton_remove_clicked();
    void on_pushButton_add_clicked();
    void on_pushButton_select_clicked();
     void on_pushButton_save_clicked();
    void on_pushButton_transform_clicked();
    void fileFinish(QString fileName);
    void fileAll();
    void on_listWidget_file_doubleClicked(QModelIndex index);
    void on_pushButton_nav_clicked();
    void on_pushButton_dec_clicked();
    void showDialog(QString str);
private:
    Ui::SacForm *ui;
    int margin;
    Common *comm;
    Config *config;
    DATAFORMAT format;
    float step;
    int progressBarValue;
    SacToSegyThread *sacToSegy;
};


#endif // SACFORM_H
